package tech.yangzhijie.basic.knowledge.mianshi;

import java.util.Arrays;
import java.util.List;

/**
 * 读读没有线程安全问题 只是读取没有顺序
 */
public class Test03ReadReadThread {

    public static void main(String[] args) {
        List<Integer> list = Arrays.asList(1,2,3,4,5,6,7);
        for (int i = 0; i < 100; i++) {
            new Thread(()->System.out.println(Thread.currentThread().getName() + " : " + list),String.valueOf(i)).start();
        }
    }
}
